@color: #a88ae9; /*公共颜色*/

.edit_area {
    position: absolute;
    top: 100px;
    right: 0;
    width: 315px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    box-sizing: border-box;
    padding-top: 10px;
    text-align: center;

    .title {
        font-family: Alimama_ShuHeiTi_Bold;
        text-align: center;
        height: 30px;
        line-height: 30px;
        font-size: 24px;
        font-weight: bold;
        color: @color;
    }

    .selection {
        position: relative;
        display: flex;
        align-items: flex-end;
        width: 180px;
        height: 40px;
        margin: auto;
        margin-top: 20px;
        user-select: none;
        -webkit-user-select: none;

        .month,
        .day {
            position: relative;
            width: 60px;
            height: 34px;
            border-radius: 4px;
            background-color: #fff;
            box-shadow: 0 0 2px 2px #a88ae947;
            margin-right: 5px;
            color: @color;
            font-size: 18px;
            text-align: center;
            line-height: 34px;
            cursor: pointer;
        }

        .day {
            margin-left: 10px;
        }

        .up {
            position: absolute;
            z-index: 1;
            right: 3px;
            top: 0;
            font-size: 12px;
            color: #333;
            margin-left: 5px;
            transform: rotate(0);
            transition: transform 0.3s;

            &.active {
                transform: rotate(180deg);
                transition: transform 0.3s;
            }
        }

        .down_menu {
            position: absolute;
            z-index: 2;
            top: 42px;
            width: 60px;
            height: 200px;
            background-color: #fff;
            border-radius: 4px;
            border: 1px solid #a88ae98f;
            overflow: hidden;
            overflow-y: auto;

            &.left {
                left: 0;
            }

            &.rig {
                right: 30px;
            }

            &::-webkit-scrollbar {
                width: 0;
            }

            .menu_ul {
                width: 100%;

                li {
                    width: 100%;
                    height: 22px;
                    text-align: center;
                    line-height: 22px;
                    margin-top: 5px;
                    cursor: pointer;

                    &:hover {
                        background-color: #a88ae98f;
                        color: #fff;
                    }
                }
            }
        }
    }

    .textarea_wrap {
        position: relative;
        width: 256px;
        height: 220px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: auto;
        margin-top: 20px;

        .textarea {
            width: 254px;
            height: 218px;
            border: 1px solid @color;
            border-radius: 6px;
            resize: none;
            box-sizing: border-box;
            padding: 10px;
            word-break: break-all;
        }

        .words_num {
            position: absolute;
            z-index: 1;
            bottom: 10px;
            right: 12px;
            color: @color;
            font-size: 12px;
        }
    }

    .agree {
        width: 245px;
        margin: auto;
        margin-top: 10px;
        display: flex;
        gap: 10px;

        .agree_tip {
            font-size: 12px;
            color: @color;
        }
    }

    .submit {
        width: 130px;
        height: 40px;
        margin: auto;
        margin-top: 30px;
        border-radius: 6px;
        text-align: center;
        line-height: 40px;
        font-size: 20px;
        margin-bottom: 10px;
        background-color: gray;
        color: #cec7c7;

        &.active {
            border: 1px solid @color;
            color: @color;
            cursor: pointer;
            box-shadow: 0 0 2px 2px transparent;
            transition: box-shadow 0.3s;
            background-color: #fff;

            &:hover {
                box-shadow: 0 0 2px 2px #a88ae94a;
                transition: box-shadow 0.3s;
            }
        }
    }
}
